﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{

    public enum ContentType
    {
        /// <summary>
        /// 公司简介
        /// </summary>
        CompanyProfile = 1,
        /// <summary>
        /// 质量控制
        /// </summary>
        QualityControl = 2,
        /// <summary>
        /// 联系我们
        /// </summary>
        ContactUs = 3,
        /// <summary>
        /// 服务
        /// </summary>
        Services=4,
    }

    public static class ContentTypeEx
    {
        public static string Name(this ContentType type)
        {
            switch (type)
            {
                case ContentType.CompanyProfile:
                    return "公司简介";
                case ContentType.ContactUs:
                    return "联系我们";
                case ContentType.QualityControl:
                    return "质量控制";
                case ContentType.Services:
                    return "服务项目";
                default:
                    return string.Empty;
            }
        }
    }
}
